--游戏场景
module("Scene.GameScene", package.seeall)

local UIWinMgr = require("UI.UIWinMgr").UIWinMgr
local SceneBase = require("Scene.SceneBase").SceneBase
local GameObject = UnityEngine.GameObject

GameScene = SceneBase:new()

--场景名称
function GameScene.GetSceneName()
    return "GameLobby_Scene"
end

function GameScene.LoadProcess(progress)
    local LoadingWin = UIWinMgr:GetWindow("LoadingWin")
    LoadingWin:SetProgress(progress)
end

--当场景加载完毕
function GameScene:OnSceneLoadOver()
    local LoadingWin = UIWinMgr:OpenWindow("LoadingWin")
    self.resLoaded = false

  
    LoadingWin:SetProgress(1)
    UIWinMgr:OpenWindow("LoginWin")
    LoadingWin:Destroy()
end

function GameScene:LoadBattleRes()
    local NewNNBootModule = require("Module.NewNNBootModule").NewNNBootModule
    NewNNBootModule:Init()
    -- local NewTZNNBootModule = require("Module.NewTZNNBootModule").NewTZNNBootModule
    -- NewTZNNBootModule:Init()
    -- local NewMYNNBootModule = require("Module.NewMYNNBootModule").NewMYNNBootModule
    -- NewMYNNBootModule:Init()
    -- local TTZBootModule = require("Module.TTZBootModule").TTZBootModule
    -- TTZBootModule:Init()
    local GBNNBootModule = require("Module.GBNNBootModule").GBNNBootModule
    GBNNBootModule:Init()
    local ZJHBootModule = require("Module.ZJHBootModule").ZJHBootModule
    ZJHBootModule:Init()
    local NewSanGongBootModule = require("Module.NewSanGongBootModule").NewSanGongBootModule
    NewSanGongBootModule:Init()
    -- local DeZhouBootModule = require("Module.DeZhouBootModule").DeZhouBootModule
    -- DeZhouBootModule:Init()
    local SBBootModule = require("Module.SBBootModule").SBBootModule
    SBBootModule:Init()
    --local winstrlis = {"NewGameLoobyWin","NewGamemyzhanghuWin","NewGamemyjulebuWin","NewGamehuiyuanlistWin","NewGamepaijulistWin",
    --"NewNNPaiWin","NewNNGameBgWin","NewNNGameWin","NewTZNNPaiWin","NewTZNNGameBgWin","NewTZNNGameWin"}
    --for i=1,#winstrlis do
    --    local Win = UIWinMgr:GetWindow(winstrlis[i])
    --end
    self.resLoaded = true
end

--当场景卸载
function GameScene:OnSceneUnLoad()
end

function GameScene:OnLoginSuccess()
    -- body
end
